<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/5/14
 * Time: 17:53
 */

namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Validator;
use App\Models\WechatStaff;

class StaffController extends Controller
{
    public $wechatStaffModel;
    public function __construct(Request $request, WechatStaff $wechatStaff)
    {
        parent::__construct();
        $this->request = $request;
        $this->wechatStaffModel = $wechatStaff;
    }

    public function index(){

        $where = [];
        $this->data["staffList"]  = $this->wechatStaffModel->where($where)->paginate(5);
        return $this->showView("staff_index");
    }

}